/* src/DailyGoal.css */

.daily-goal-container {
    padding: 20px;
    max-width: 800px;
    margin: 40px auto;
    background-color: #f3f0ff; /* 浅紫色背景 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(128, 0, 128, 0.1); /* 紫色阴影 */
}

.update-goal-section, .goal-list-section {
    margin-bottom: 30px;
}

.update-goal-section h4, .goal-list-section h4 {
    margin-bottom: 15px;
    color: #4b0082; /* 深紫色 */
    text-align: center;
}

.goal-input {
    width: 90%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 2px solid #dda0dd; /* 浅紫色边框 */
    border-radius: 8px;
    font-size: 1em;
}

.update-goal-button, .save-goal-button, .cancel-goal-button, .edit-goal-button, .delete-goal-button, .complete-goal-button, .view-goals-button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s, transform 0.2s;
}

/* 按钮颜色配置 */
.update-goal-button {
    background-color: #6a5acd; /* 蓝紫色 */
    color: white;
}

.update-goal-button:hover {
    background-color: #483d8b; /* 深紫色 */
    transform: translateY(-2px);
}

.save-goal-button {
    background-color: #ba55d3; /* 中紫色 */
    color: white;
}

.save-goal-button:hover {
    background-color: #9932cc; /* 深中紫色 */
    transform: translateY(-2px);
}

.cancel-goal-button {
    background-color: #c71585; /* 玫瑰紫色 */
    color: white;
}

.cancel-goal-button:hover {
    background-color: #a020f0; /* 深玫瑰紫色 */
    transform: translateY(-2px);
}

.edit-goal-button {
    background-color: #9370db; /* 紫水晶色 */
    color: white;
}

.edit-goal-button:hover {
    background-color: #7b68ee; /* 暗紫色 */
    transform: translateY(-2px);
}

.delete-goal-button {
    background-color: #dda0dd; /* 苍紫色 */
    color: white;
}

.delete-goal-button:hover {
    background-color: #da70d6; /* 紫罗兰色 */
    transform: translateY(-2px);
}

.complete-goal-button {
    background-color: #dda0dd; /* 苍紫色 */
    color: white;
}

.complete-goal-button:hover {
    background-color: #da70d6; /* 紫罗兰色 */
    transform: translateY(-2px);
}

.view-goals-button {
    background-color: #8a2be2; /* 蓝紫色 */
    color: white;
}

.view-goals-button:hover {
    background-color: #7a1be2; /* 深蓝紫色 */
    transform: translateY(-2px);
}

.goal-list-section p {
    text-align: center;
    font-size: 1.1em;
    color: #4b0082; /* 深紫色 */
}

.goal-list-section .goal-item {
    background-color: #e6e6fa; /* 薰衣草紫 */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #dda0dd; /* 浅紫色边框 */
    box-shadow: 0 2px 4px rgba(128, 0, 128, 0.1); /* 紫色阴影 */
}

.goal-details p {
    margin: 8px 0;
    color: #4b0082; /* 深紫色 */
}

.goal-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.goal-actions button {
    margin: 0 5px;
}

/* 编辑模式样式 */
.edit-goal .goal-input {
    width: 95%;
    margin-bottom: 10px;
}